import request from '@/utils/request'
//课程章节管理接口
export function sysCourseChapterQuery(data) {
  //课程章节信息分页列表
  return request({
    method: 'get',
    url: '/sysCourseChapter/query',
    params: data,
  })
}

export function sysCourseChapterQueryById(id) {
  //查询一条课程章节信息
  return request({
    method: 'get',
    url: '/sysCourseChapter/query/' + id,
  })
}

export function sysCourseChapterAdd(data) {
  //添加一条课程章节信息
  return request({
    method: 'post',
    url: '/sysCourseChapter/add',
    data,
  })
}

export function sysCourseChapterDelete(id) {
  //删除一条课程章节信息
  return request({
    method: 'get',
    url: '/sysCourseChapter/delete/' + id,
  })
}

export function sysCourseChapterUpdate(data) {
  //修改一条课程章节信息
  return request({
    method: 'post',
    url: '/sysCourseChapter/update',
    data,
  })
}

export function openApiSysCourseChapterQuery(data) {
  //查询一条课程章节管理信息
  return request({
    method: 'get',
    url: '/openApi/sysCourseChapter/query',
    params: data,
  })
}

export function openApiSysCourseChapterQueryById(id) {
  //查询一条课程章节管理信息
  return request({
    method: 'get',
    url: '/openApi/sysCourseChapter/query/' + id,
  })
}
